package com.zmn.plat.services.interfaces.orderconfig.documentarycontent;

import java.util.List;

import com.zmn.plat.model.entity.orderconfig.documentarycontent.DocumentaryDepartmentRelations;
import com.zmn.plat.model.entity.orderconfig.documentarycontent.DocumentaryDepartmentRelationsQuery;
import com.zmn.plat.model.vo.orderconfig.documentarycontent.DocumentaryDepartmentRelationsVO;

/**
 * 类描述:跟单部门service
 *
 * @author linfeng
 * @since 2019/10/22/13:47
 */
public interface DocumentaryDepartmentRelationsService {
    /**
     * 添加跟单内容
     *
     * @param documentaryDepartmentRelations
     *            对象
     * @return
     */
    Integer insert(DocumentaryDepartmentRelations documentaryDepartmentRelations);

    /**
     * 批量插入跟单内容
     * 
     * @param departmentRelationList
     * @return
     */
    Integer insertBatch(List<DocumentaryDepartmentRelations> departmentRelationList);

    /**
     * 根据跟单内容id删除跟单部门数据
     * 
     * @param documentaryContentId
     * @return
     */
    Integer deleteByDocumentaryContentId(Integer documentaryContentId);

    /**
     * 搜索
     *
     * @param query
     *            条件
     * @return
     */
    List<DocumentaryDepartmentRelationsVO> listByQuery(DocumentaryDepartmentRelationsQuery query);

    /**
     * 获取所有跟单部门数据
     * 
     * @return
     */
    List<DocumentaryDepartmentRelationsVO> listAll();

}
